validateUiMessages